import { createRouter, createWebHistory } from 'vue-router'

import openwx from '@/view/openwx/index.vue'
import success from '@/view/success/index.vue'

const router = createRouter({
  history: createWebHistory('/h5/'), //二级路径添加此处
  routes: [
    {
      path: "/",
      redirect: "/openwx"
    },
    {
      path: "/openwx",
      component: openwx
    },
    {
      path: "/success",
      component: success
    }
  ]
})
export default router